package model.dao;

import java.sql.SQLException;
import java.util.List;

import model.domain.UserDefaultBean;
import model.util.DBUtil;

import com.ibatis.sqlmap.client.SqlMapClient;

public class UserDefaultDao {
	private static SqlMapClient sqlMapper = DBUtil.getParser();
	//XMLBuilder에서 사용
	public static List<UserDefaultBean> selectAllDefault() throws Exception{
		try {
			return sqlMapper.queryForList("userDefault.selectAllDefault");
		}catch(SQLException e){
			e.printStackTrace();
			throw new Exception("selectAllDefault error");
		}
	}
}
